package com.woniu.cinema.domain;

import com.woniu.common.annotation.Excel;
import com.woniu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 影片评论对象 tb_comment
 * 
 * @author yy
 * @date 2021-04-16
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String userComment;

    /** 用户评分 */
    @Excel(name = "用户评分")
    private BigDecimal userScore;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserComment(String userComment) 
    {
        this.userComment = userComment;
    }

    public String getUserComment() 
    {
        return userComment;
    }
    public void setUserScore(BigDecimal userScore) 
    {
        this.userScore = userScore;
    }

    public BigDecimal getUserScore() 
    {
        return userScore;
    }
    public void setMovieId(Long movieId) 
    {
        this.movieId = movieId;
    }

    public Long getMovieId() 
    {
        return movieId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("userComment", getUserComment())
            .append("userScore", getUserScore())
            .append("createTime", getCreateTime())
            .append("movieId", getMovieId())
            .toString();
    }
}
